package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

@Entity
public class Wxgdxiangqing {
    private int gdxqId;//维修工单详情id
    private Productt productt;//产品从表对象
    private Weixiugongdan weixiugongdan;//维修工单对象
    private Integer ddcpNum;//产品数量
    private BigDecimal ddcpPrice;//产品价格
    private BigDecimal ddxqXiaoji;//产品小计

    @Id
    @Column(name = "gdxq_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getGdxqId() {
        return gdxqId;
    }

    public void setGdxqId(int gdxqId) {
        this.gdxqId = gdxqId;
    }

    @ManyToOne
    @JoinColumn(name = "productt_id", referencedColumnName = "productt_id")
    public Productt getProductt() {
        return productt;
    }

    public void setProductt(Productt productt) {
        this.productt = productt;
    }

    @ManyToOne
    @JoinColumn(name = "gd_id", referencedColumnName = "gd_id")
    public Weixiugongdan getWeixiugongdan() {
        return weixiugongdan;
    }

    public void setWeixiugongdan(Weixiugongdan weixiugongdan) {
        this.weixiugongdan = weixiugongdan;
    }

    @Basic
    @Column(name = "ddcp_num", nullable = true, precision = 0)
    public Integer getDdcpNum() {
        return ddcpNum;
    }

    public void setDdcpNum(Integer ddcpNum) {
        this.ddcpNum = ddcpNum;
    }

    @Basic
    @Column(name = "ddcp_price", nullable = true, precision = 2)
    public BigDecimal getDdcpPrice() {
        return ddcpPrice;
    }

    public void setDdcpPrice(BigDecimal ddcpPrice) {
        this.ddcpPrice = ddcpPrice;
    }

    @Basic
    @Column(name = "ddxq_xiaoji", nullable = true, precision = 2)
    public BigDecimal getDdxqXiaoji() {
        return ddxqXiaoji;
    }

    public void setDdxqXiaoji(BigDecimal ddxqXiaoji) {
        this.ddxqXiaoji = ddxqXiaoji;
    }

}
